# -*- coding: utf-8 -*-
# @Time        :2025/4/10 9:17
# @Author      :文刀水寿
# @File        : exts.py
"""
 @Description :
"""
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from flask_caching import Cache

db = SQLAlchemy()
migrate = Migrate()
cache = Cache(config={
    'CACHE_TYPE': 'simple'  # 缓存类型
})


def init_exts(app):
    db.init_app(app=app)
    migrate.init_app(app=app, db=db)
    cache.init_app(app=app)